package org.example.easybuy.service;

import com.github.pagehelper.PageInfo;
import org.example.easybuy.entity.News;

import java.util.Map;

public interface NewsService {
    PageInfo<News> getNewsPageInfo(Map<String,Object> params);
    boolean deleteNewsById(int id);
    boolean updateNews(News news);
    News selectNewsById(int id);
    boolean addNews(News news);
    News selectByTitle(String title);
}
